﻿using System.Collections;
using System.Collections.Generic;
using UnityEngine;

public enum CrossVal { nil = 0, black = 1, white = 2, out_of_range = 3};
public enum Player { AI_1, AI_2, Person1, Person2};

struct Record
{
    public CrossVal value;
    public Point pt;
}

public class Constant{
    public const int GobangNum = 5;

    public const float GridSize = 40;//cross尺寸

    public const int CrossCount = 15;
    public const int AllPossible_15 = 572;//15*15的棋盘共有572种五子连珠的可能性

    public const int BoardSize = 560;

    public const int PlayerScore_1 = 1;
    public const int PlayerScore_2 = 10;
    public const int PlayerScore_3 = 100;
    public const int PlayerScore_4 = 10000;

    public const int ZLLScore_1 = 1;
    public const int ZLLScore_2 = 10;
    public const int ZLLScore_3 = 1000;
    public const int ZLLScore_4 = 100000;

    //本地文件key
    public const string LOCAL_MUSIC_ON_KEY = "local_music_on_key";
    public const string LOCAL_SOUND_ON_KEY = "local_sound_on_key";

    //棋局类型   
    public const  int WIN5 = 0;//0->5连珠
    public const int ALIVE4 = 1;//1->活4
    public const int DIE4 = 2;//2->死4
    public const int LOWDIE4 = 3;//3->死4的低级版本
    public const int ALIVE3 = 4;//3->活3
    public const int TIAO3 = 5;//5->跳3
    public const int DIE3 = 6;//6->死3
    public const int ALIVE2 = 7;//7->活2
    public const int LOWALIVE2 = 8;//8->低级活2
    public const int DIE2 = 9;//9->死2
    public const int NOTHREAT = 10;//10->没有威胁

    //打分等级
    public const int LevelOne = 100000;//成五
    public const int Leveltwo = 10000;//成活4 或 双死4 或 死4活3
    public const int Levelthree = 5000;//双活3
    public const int Levelfour = 1000;//死3高级活3
    public const int Levelfive = 500;//死四
    public const int Levelsix = 400;//低级死四
    public const int Levelseven = 100;//单活3
    public const int LevelEight = 90;//跳活3
    public const int LevelNight = 50;//双活2
    public const int LevelTen = 10;//活2
    public const int LevelEleven = 9;//低级活2
    public const int LevelTwelve = 5;//死3
    public const int LevelThirteen = 2;//死2
    public const int LevelFourteen = 1;//没有威胁
    public const int LevelFiveteen = 0;//不能下
}
